What are the states associated in the thread?
2172
25-Oct-2010
Rajesh Goswami
09-Nov-2010Process is a program in execution.Suppose there r two processes that means that occurs at different-different memory location. and the context switching b/w process is more expensive.bcz it will take more time from one memory allocation to other memory allocation.that is why Process is called HEAVY WEIGHT PROCESS.
Thread is smallest part of program.and It is independent sequential path of execution with in a program.
Suppose there r two threads that means that occurs at same memory location bcz of smallest part of program.
and the context switching b/w threads is less expensive rather than process.that is why Thraed is called Light
WEIGHT PROCESS.